package com.andy.wang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serializable;

@Data
public class Room implements Serializable {
    /**
     * 房间主键
     */
    @TableId(type = IdType.AUTO)
    @TableField("Rid")
    private Integer Rid;

    /**
     * 房间创建人用户UID
     */
    @TableField("roomUID")
    private String roomUID;


    /**
     * 房间名称
     */
    @TableField("roomName")
    private String roomName;


    /**
     * 房间类型
     */
    @TableField("roomType")
    private String roomType;



    // user 对象
    private User user;

    // 房间对象
    private Accroom accroom;

    @TableField("isDeleted")
    @TableLogic
    private int isDeleted;
}
